@extends($theme.'.layouts.app')
@section('content')
    <div class="bg_cont">
        <div class="container">
            <form id="registerForm" class="loginForm" action="{{ asset('login') }}" method="post">
                {!! csrf_field() !!}
                <div class="row text-center">
                    <h2>用户登录</h2>
                </div>
                <div class="form-group">
                    <label for="name">用户名</label>
                    <input type="text" id="name" class="form-control" name="name" tabindex="4" value="{{ old('name') }}"
                           placeholder="请输入用户名">

                    <p class="bg-danger">{{ $errors->first('name') }}</p>
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" class="form-control" name="password" tabindex="5"
                           placeholder="请输入密码">

                    <p class="bg-danger">{{ $errors->first('password') }}</p>
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox" id="remember" value="" checked="checked" name="remember"> 记住我
                    </label>
                    <a href="{{ url('password/email') }}" class="fr" target="_blank">忘记密码？</a>
                </div>
                <div class="form-group">
                    <div class="col-xs-6">
                        <input type="submit" class="btn btn-primary btn-block" tabindex="6" value="登 &nbsp; &nbsp; 录">
                    </div>
                    <div class="col-xs-6">
                        <input type="button" class="btn btn-success btn-block" tabindex="7"
                               onclick="javascript:window.location='{{ asset('/') }}';" value="返回首页">
                    </div>
                </div>
                <div class="checkbox pull-right">
                    <label>还没有帐号？</label>
                    <a href="{{ asset('reg') }}" class="registor_now">马上注册</a>
                </div>
            </form>
        </div>
    </div>
    <style>
        #registerForm input { width: 100%;}
        .bg-danger { color: #f00;}
    </style>
@endsection
